package com.compass.controller;

import com.compass.service.UserService;
import com.compass.vo.ResponseMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: li
 * Date: 2019/4/14
 * Time: 11:35
 * PROJECT：compass
 * PACKAGE: com.compass
 *
 * @author:55324936@qq.com To change this template use File | Settings | File Templates.
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("/userList")
    public @ResponseBody ResponseMessage userList(){
      ResponseMessage responseMessage= userService.userList();
       return responseMessage;
    }
}
